package Solutions

func isSameAfterReversals(num int) bool {
    return reserve_2119(reserve_2119(num))==num

}

func reserve_2119(num int)int{
    var ans=0
    var flag bool
    for num>0{
        var t=num%10
        num/=10
        if t==0&&!flag{
            continue
        }
        flag=true
        ans*=10
        ans+=t
    }
    return ans
}